package cn.test;

import cn.thread.MyThreadController;

/**
 * 线程控制
 */
public class ThreadController {
    public static void main(String[] args) {
        MyThreadController t1=new MyThreadController();
        MyThreadController t2=new MyThreadController();
        MyThreadController t3=new MyThreadController();
        t1.setName("线程1");
        t2.setName("线程2");
        t3.setName("线程3");
        t1.start();
        t2.start();
        t3.start();
    }
}
